package com.lanou.utp.mapper;

import com.lanou.utp.entity.WarningPlan;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface WarningPlanMapper {

    List<WarningPlan> listWarningPlans(@Param("type") Integer type,
                                       @Param("start") Integer start,
                                       @Param("number") Integer number);

    Long getWarningPlansTotal(Integer type);

    int addWarningPlan(WarningPlan warningPlan);

    int updateWarningPlan(WarningPlan warningPlan);

    int deleteWarningPlan(Integer id);
}
